/** @file               sw_curve.h
 *  @copyright          Copyright (C) 2006-2026 flyfish (tenggui_fu@126.com)
 *  @brief              This file is part of the swallow library
 *  @author             $Author: flyfish $
 *  @version            $Rev: 385 $
 *  @date               $Date: 2016-12-22 00:12:05 +0800 (周四, 22 12月 2016) $
 */
#ifndef __SW_CURVE_H__
#define __SW_CURVE_H__

#ifdef __cplusplus
extern "C" {
#endif

typedef SW_VOID *SW_CURVE;
#define SW_INVALID_CURVE NULL

SW_API SW_RET SW_InitCurveAPI(SW_VOID);
SW_API SW_RET SW_RunCurveAPI(SW_VOID);
SW_API SW_RET SW_StopCurveAPI(SW_VOID);
SW_API SW_RET SW_ExitCurveAPI(SW_VOID);
SW_API SW_RET SW_ReadCurve(const SW_CHAR *pFileName,SW_POINT *pPoint, SW_UINT32 pointCount);
SW_API SW_RET SW_WriteCurve(const SW_CHAR *pFileName,const SW_POINT *pPoint, SW_UINT32 pointCount);
SW_API SW_UINT32 SW_GetCurveCount(const SW_CHAR *pFileName);

#ifdef __cplusplus
}
#endif

#endif

